#!/bin/bash
clear

delay=0.2
space=''

read -p 'Введите строку: ' string
size=${#string}

while true
do
  space=$(echo "$space" " ")
  sleep $delay
  clear
  echo -n "${space} ${string}"
done

echo 
